<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<!--<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">-->
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<link href="../plugin/webuploader/webuploader.css" rel="stylesheet">
		<style>
			.n-default .n-left,
			.n-default .n-right {
				margin-top: 32px!important;
			}
		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">用户中心</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="user_left"></div>
				<div class="ZZHT-content">

					<div class="ZZHT-user-head clearfix">
						<b>申请联盟</b>
						<span class="user_bread fr">
        当前位置：<span>用户身份</span>--<span>申请联盟</span>
						</span>
					</div>
					<div class="mains bz">
						<form id="form_union" class="nice-validator n-default" novalidate="novalidate">
							<div class="form-group clearfix">
								<label class="control-label fl"><span class="text-label">是否法人：</span></label>
								<div class="fl clearfix">
									<div class="ui-checkbox ui-checkbox1">
										<input type="checkbox" name="isLegal" value="1" checked="checked">
										<label></label>
									</div>
									<span>是</span>
									<div class="ui-checkbox ui-checkbox1">
										<input type="checkbox" name="isLegal" value="0">
										<label></label>
									</div>
									<span>否</span>
								</div>
							</div>
							<div class="form-group legalp">
								<label class="control-label">
					                <span class="text-label">法人姓名：</span>
					                <input type="text" name="legalPerson" id="legalPerson" class="ipt" disabled="disabled" value="" placeholder="请输入法人姓名" data-rule="法人姓名: required;">
					            </label>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">身份证号：</span>
					                <input type="text" name="IDnumber1" id="IDnumber1" disabled="disabled" value="">
					                <input type="hidden" name="IDnumber" id="IDnumber" class="ipt" value="130121199005180010">
					            </label>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">公司名称：</span>
					                <input type="text" value="" class="bz ipt" id="companyName" placeholder="请输入公司名称" maxlength="40" name="companyName" aria-required="true">
					            </label>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">营业执照号码：</span>
					                <input type="text" value="" class="bz ipt" id="licenseNo" placeholder="请输入营业执照号码" maxlength="20" name="licenseNo" aria-required="true">
					            </label>
							</div>
							<div class="form-group clearfix">
								<label class="control-label fl"><span class="text-label">企业类型：</span></label>
								<div class="fl clearfix">
									<div class="fl" style="margin-right: 20px;">
										<div class="ui-checkbox uis-checkbox">
											<input type="checkbox" name="companyType" value="0" checked="checked">
											<label></label>
										</div>
										<span>个体户</span>
									</div>
									<div class="fl">
										<div class="ui-checkbox uis-checkbox">
											<input type="checkbox" name="companyType" value="1">
											<label></label>
										</div>
										<span>公司</span>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">所属行业：</span>
					                <select class="ipt" id="industry" aria-required="true">
					                    <option value="">-请选择-</option>
                                        <option value="1">生活服务</option>
                                        <option value="2">休闲娱乐</option>
                                        <option value="3">餐饮服务</option>
                                        <option value="4">酒店住宿</option>
                                        <option value="5">丽人</option>
                                        <option value="6">旅游出行</option>
                                        <option value="7">房产</option>
                                        <option value="8">汽车销售</option>
                                        <option value="9">数码电子</option>
                                        <option value="10">服装配饰</option>
                                        <option value="11">文化教育</option>
                                        <option value="12">家居家装</option>
                                        <option value="13">养生保健</option>
                                        <option value="14">保险</option>
                                        <option value="15">婚庆周边</option>
                                        <option value="16">火车票/机票</option>
                                        <option value="17">学习培训</option>
                                        <option value="18">其他行业</option>
                                    </select>
            					</label>
							</div>
							<div class="layui-form-item form-area">
								<label class="layui-form-label labels">营业执照地址：</label>
								<div class="layui-input-inline select-box">
									<select id="provinceId" class="j-areas ipt" level="0" onchange="ZZHT.ITAreas({id:'provinceId',val:this.value,isRequire:true,className:'j-areas'});" data-target="#addressTips" aria-required="true">
										<option value="">-请选择-</option>
										<option value="110000">北京市</option>
										<option value="440000">广东省</option>
										<option value="450000">广西壮族自治区</option>
										<option value="460000">海南省</option>
										<option value="500000">重庆市</option>
										<option value="510000">四川省</option>
										<option value="520000">贵州省</option>
										<option value="530000">云南省</option>
										<option value="540000">西藏自治区</option>
										<option value="610000">陕西省</option>
										<option value="620000">甘肃省</option>
										<option value="630000">青海省</option>
										<option value="640000">宁夏回族自治区</option>
										<option value="650000">新疆维吾尔自治区</option>
										<option value="710000">台湾</option>
										<option value="810000">香港特别行政区</option>
										<option value="430000">湖南省</option>
										<option value="420000">湖北省</option>
										<option value="120000">天津市</option>
										<option value="130000">河北省</option>
										<option value="140000">山西省</option>
										<option value="150000">内蒙古自治区</option>
										<option value="210000">辽宁省</option>
										<option value="220000">吉林省</option>
										<option value="230000">黑龙江省</option>
										<option value="310000">上海市</option>
										<option value="320000">江苏省</option>
										<option value="330000">浙江省</option>
										<option value="340000">安徽省</option>
										<option value="350000">福建省</option>
										<option value="360000">江西省</option>
										<option value="370000">山东省</option>
										<option value="410000">河南省</option>
										<option value="820000">澳门特别行政区</option>
									</select>
									<span id="addressTips"></span>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">店铺名称：</span>
					                <input type="text" value="" class="bz ipt" id="shopName" maxlength="40" name="shopname" placeholder="请输入店铺名称" aria-required="true">
					            </label>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">经营地址：</span>
					                <input type="text" value="" class="bz ipt" id="address" maxlength="40" placeholder="请输入企业经营地址" aria-required="true">
					            </label>
							</div>
							<div class="form-group">
								<label class="control-label">
					                <span class="text-label">经营电话：</span>
					                <input type="text" value="" class="bz ipt" id="telephone" maxlength="20" placeholder="请输入手机号码或座机号码" onkeyup="javascript:ZZHT.isChinese(this,1)" aria-required="true">
					            </label>
							</div>
							<div class="form-group clearfix">
								<label class="control-label fl"><span class="text-label">三证合一：</span></label>
								<div class="fl clearfix">
									<div class="fl" style="margin-right: 20px;">
										<div class="ui-checkbox ui-checkbox5">
											<input type="checkbox" name="licenseMerge" value="1" checked="checked">
											<label></label>
										</div>
										<span>是</span>
									</div>
									<div class="fl">
										<div class="ui-checkbox ui-checkbox5">
											<input type="checkbox" name="licenseMerge" value="0">
											<label></label>
										</div>
										<span>否</span>
									</div>
								</div>
							</div>
							<div class="form-upload clearfix">
								<em class="label-text fl">营业执照：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview1">
										<img src="http://zzhtwl.oss-cn-qingdao.aliyuncs.com/%E8%81%94%E7%9B%9F%E5%95%86%E5%AE%B6%E6%8E%88%E6%9D%83%E4%B9%A6.pdf" alt="">
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker1"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2ibvo3j913sf15k59781" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="licenseImg" value="" data-target="#licenseTips" aria-required="true">
										<span id="licenseTips" class="fl"></span>
									</div>
								</div>
							</div>
							<div class="form-upload clearfix" id="codeCertificate" style="display: none;">
								<em class="label-text fl">组织机构代码证：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview2">
										<img src="" alt="">
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker2"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2ipi4ptcr1p2ug7b27a4" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="codeImg" value="">
									</div>
								</div>
							</div>
							<div class="form-upload clearfix" id="taxCertificate" style="display: none;">
								<em class="label-text fl">综合服务费务登记证：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview3">
										<img src="" alt="">
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker3"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2it1lu7mg1btb1uprpl17" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="taxImg" value="">
									</div>
								</div>
							</div>
							<div class="form-upload clearfix">
								<em class="label-text fl">法人手持身份证照：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview4">
										<img src="" alt="">
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker4"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2j01j24ok112201k861k74a" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="legalPersonImg" data-target="#legalPersonTips" aria-required="true">
										<span id="legalPersonTips" class="fl"></span>
									</div>
								</div>
							</div>
							<div class="form-upload clearfix">
								<em class="label-text fl">Logo或门头照：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview5">
										<img src="" alt="">
										<p id="upload2Text"></p>
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker5"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2j395ohk77tkgmf19qad" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="logo" data-target="#logoTips" aria-required="true">
										<span id="logoTips" class="fl"></span>
									</div>
								</div>
							</div>
							<div class="form-upload clearfix" id="authCertificate" style="display: none;">
								<em class="label-text fl">上传授权证书：</em>
								<div class="upload fl">
									<div class="img-reader" id="preview6">
										<img src="" alt="">
										<p id="upload2Text1"></p>
									</div>
									<div class="thumbnail">
										<span class="upload-btn webuploader-container" id="adFilePicker6"><div class="webuploader-pick">上传</div><div id="rt_rt_1cbqns2j7e1nj2v2nlr1p1csrg" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 44px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept="image/*"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></span>
										<input type="hidden" class="input-file bz upload-files ipt" id="authorizationImg" data-target="#authTips">
										<a href="http://zzhtwl.oss-cn-qingdao.aliyuncs.com/%E8%81%94%E7%9B%9F%E5%95%86%E5%AE%B6%E6%8E%88%E6%9D%83%E4%B9%A6.pdf" class="ZZHT-fblue fl" style="line-height: 30px;">&nbsp;&nbsp;联盟商家授权书下载</a>
										<span id="authTips" class="fl"></span>
									</div>
								</div>
							</div>
							<div class="form-group" style="margin-left:120px;">
								<div class="control-label"><span class="text-label"></span>
									<div class="fl clearfix">
										<div class="fl" style="margin-right: 15px;">
											<!--[if !IE]><!-->
											<div class="ui-checkbox ui-checkbox3" data-id="1">
												<input type="checkbox" class="chks" checked="checked">
												<label></label>
											</div>
										</div>
										<span class="xieyi fl">我已同意
                        					<span class="ZZHT-fred">《商家联盟商家服务协议》</span>
										</span>
									</div>
								</div>
							</div>
							<div>
								<input class="confirm_union sure_btn" type="submit" value="确定提交">
							</div>
						</form>
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/jquery.validator.js"></script>
		<script src="../js/zh-CN.js"></script>
		<script type="text/javascript" src="../plugin/layer/layer.js"></script>
		<script src="../plugin/webuploader/webuploader.js"></script>
		<script src="../js/common.js"></script>
		<script src="../js/common_view.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<script type="text/javascript" src="../plugin/userLib/js/union.js"></script>
		<script type="text/javascript">
			$.ajax({//获取当前用户的身份证和姓名
				type: "get",
				url: SURL + "usersRealname/selectUserCardId",
				data: {
					userId: localStorage.userId
				},
				success: function(data) {
					console.log(data);
					if(data.messageCode == 200) {
						$('#legalPerson').val(data.entity.trueName);
						let cid = data.entity.cardID;
						$('#IDnumber').val(cid);
						cid = cid.substr(0, 4) + '****' + cid.substr(cid.length - 4, cid.length);
						$('#IDnumber1').val(cid);
					}else{
						layer.msg(data.message);
					}
				}
			});

			$(function() {
				//				var shopStatus = 1000;
				//				if(shopStatus == 0) {
				//					ZZHT.msg('申请正在审核中', {
				//						icon: 1
				//					});
				//					window.history.back();
				//				}
				//				if(shopStatus == 1) {
				//					ZZHT.msg('该用户申请已通过', {
				//						icon: 1
				//					});
				//					window.history.back();
				//				}

				initGrid();
//				var flag = "0";
//				if(flag != '0') {
//					var provinceId = "";
//					var cityId = "";
//					var areaId = "";
//					$('#areaId1').val(provinceId);
//					var areaIdPath = [provinceId, cityId, areaId];
//					var aopts = {
//						id: 'areaId1',
//						val: provinceId,
//						childIds: areaIdPath,
//						className: 'j-areas'
//					};
//					ZZHT.ITSetAreas(aopts);
//				}
			})
		</script>
	</body>

</html>